package finger.dao;

import finger.domain.Book;

import java.util.List;

public interface BookDao {

    public int addBook(Book book);

    public int deleteBook(Integer id);

    public int updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();

    public Integer queryPageTotalCount();

    public List<Book> queryForItems(Integer i, Integer pageSize);

    public Integer queryPageTotalCountByPrice(Integer min, Integer max);

    public List<Book> queryForItemsByPrice(Integer begin ,Integer pageSize,Integer min, Integer max);
}
